// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(30001,"Snowstorm Slime");
	set_attack_range(30001,3);
	set_boss_level(30001,1);
	add_ability(30001,10,66,0);
	set_name(30003,"Shocking Slime");
	set_boss_level(30003,1);
	add_ability(30003,10,69,0);
	
	if (gf(58,21) > 0) {
		erase_char(30001);
		erase_char(30002);
		erase_char(30003);
		erase_char(30004);
		erase_char(5819);
		erase_char(5829);
		erase_char(5830);
		}
		
	set_name(5841,"Sentinel Specter");
	add_ability(5841,10,301,0);
	set_name(30006,"Librarian Bones");
	set_name(5848,"Sentinel Specter");
	add_ability(5848,10,301,0);

	set_attack_range(5855,4);
	set_attack_range(58565,4);

	set_name(5857,"Sentinel Specter");
	add_ability(5857,10,301,0);
	set_name(5858,"Sentinel Specter");
	add_ability(5858,10,301,0);
	
	set_attack_range(30007,5);
	
	set_boss_level(5866,1);
	add_ability(5866,10,80,0);
	set_boss_level(5867,1);
	add_ability(5867,10,80,0);

	if (gf(58,12) > 0) {
		erase_char(5866);
		erase_char(5867);
		}
	

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	sf(58,24,1);
	if (gf(58,12) == 0) {
		sf(58,22,0);
		sf(58,23,0);
		}
	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	//if ((set_ter1 == 0) && (gf(0,0) > 0)) {
	//	set_ter1 = 1;
	//	set_terrain(,,,);
	//	}
		
	// if (gf(,) == 0) {
	//if (get_ran(1,0,100) < 10)
	//	give_char_text_bubble(,"");
	//	}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
	if ((char_ok(5866)) && (get_attitude(5866) < 10))
		set_attitude(5866,10);
	if ((char_ok(5867)) && (get_attitude(58658676) < 10))
		set_attitude(5867,10);
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
